package net.csdra.libraryborrowing.service.user;

import net.csdra.libraryborrowing.domain.user.UserBorrowLog;
import net.csdra.libraryborrowing.domain.user.UserBorrowLogRepository;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by add on 2017/10/17.
 */
public class UserBorrowLogComponentImpl implements UserBorrowLogComponent {
    @Autowired
    UserBorrowLogRepository userBorrowLogRepository;

    @Override
    public void addUserBorrowLog(UserBorrowLog userBorrowLog) {
        this.userBorrowLogRepository.save(userBorrowLog);
    }
}
